package org.linlinjava.litemall.admin.beans.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.util.List;

@ApiModel(value = "LumierePointExchangeDto", description = "积分兑换配置数据传输对象")
@Data
public class LumierePointExchangeDto {

    @ApiModelProperty("主键ID")
    private Integer id;

    @ApiModelProperty("兑换积分名称")
    @NotNull(message = "兑换积分名称不能为空")
    private String name;

    @ApiModelProperty("所需积分")
    @NotNull(message = "积分不能为空")
    private Integer point;

    @ApiModelProperty("商品一级分类ID")
    @NotNull(message = "商品一级分类")
    private Integer selectedLevel1;

    @ApiModelProperty("商品二级分类ID")
    @NotNull(message = "商品二级分类")
    private Integer selectedLevel2;

    @ApiModelProperty("商品三级分类ID列表")
    @NotNull(message = "商品分类不能为空")
    private List<Integer> categoryIds;

    @ApiModelProperty("最小兑换金额")
    private BigDecimal minMoney;

    @ApiModelProperty("最大兑换金额")
    private BigDecimal maxMoney;

    @ApiModelProperty("状态")
    private Byte status;

    @ApiModelProperty("添加时间")
    private LocalDateTime addTime;

    @ApiModelProperty("修改时间")
    private LocalDateTime updateTime;

    @ApiModelProperty("是否删除")
    private Boolean deleted;
}
